home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 259 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: gate.net!pslfl2-24
  2. From: bhutto@gate.net (William Hutto)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: I need help with a compiler
  5. Date: 3 Jan 1996 21:08:40 GMT
  6. Organization: CyberGate, Inc.
  7. Message-ID: <4cer8o$1v44@news.gate.net>
  8. References: <8206107149101@demosys.gcomm.com>
  9. NNTP-Posting-Host: pslfl2-24.gate.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <8206107149101@demosys.gcomm.com>,
  13.    loople@gcomm.com (Mike Lopier) wrote:
  14. >
  15. >I am trying to *learn* C so i bought 2 books, 1 for learning C and
  16. >another to move from C to C++, one of them came with a compiler called
  17. >GNU but I write a simple program like:
  18. >
  19. >#include <iostream.h>
  20. >main ()
  21. >{
  22. >cout "Hello";
  23. >}
  24. >
  25. >
  26. >And when i tried to compile it I get a Iostream.h -- file not found
  27. >
  28. >Well i've copied the .cpp, the iostream.h, and teh compiler all into the
  29. >same directory and it still gave me that error. I've even put it in the
  30. >path but still it keeps saying 'file not found'...There are no options
  31. >for 'path of header files' or something...it is a command line
  32. >compiler..So i am thouroughly confused and frustrated. If anyone out
  33. >there knows why even though i know that i didn't give you enough info
  34. >that's all i can come up with and I have no idea why it won't work.
  35.  
  36. Well I don't know about your compiler or system. But with me, I would have to 
  37. set an environment variable:
  38.  
  39. set INCLUDE=D:\SRC\C\INCLUDE
  40.  
  41. The command line compiler would then check the environment for this variable 
  42. to locate all standard include files (those defined between angle brackets 
  43. <_include file_>).
  44.  
  45. Bill
  46.  
  47. "Whatcha got on?...Your mind?"
  48.